package com.mvd.app.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2019-04-29.
 */

public class OtherWaiJianPhotoModel implements Serializable {

    private String Code, Name, isCheck = "0";

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(String isCheck) {
        this.isCheck = isCheck;
    }

    public OtherWaiJianPhotoModel(String code, String name, String isCheck) {
        Code = code;
        Name = name;
        this.isCheck = isCheck;
    }
    public OtherWaiJianPhotoModel( ) {

    }

    @Override
    public String toString() {
        return "OtherWaiJianPhotoModel{" +
                "Code='" + Code + '\'' +
                ", Name='" + Name + '\'' +
                ", isCheck='" + isCheck + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object obj) {
//        if (this == o) return true;
//        if (!(o instanceof OtherWaiJianPhotoModel)) return false;
//
//        OtherWaiJianPhotoModel that = (OtherWaiJianPhotoModel) o;
//
//        if (!Code.equals(that.Code)) return false;
//        if (!Name.equals(that.Name)) return false;
//        return isCheck.equals(that.isCheck);



        OtherWaiJianPhotoModel b = (OtherWaiJianPhotoModel) obj;

        return Code.equals(b.Code)  && Name.equals(b.Name)
                && isCheck.equals(b.isCheck);


    }

    @Override
    public int hashCode() {

        String in = Code + Name + isCheck;
        return in.hashCode();
//        int result = Code.hashCode();
//        result = 31 * result + Name.hashCode();
//        result = 31 * result + isCheck.hashCode();
//        return result;
    }
}
